#ifndef UITOOLS_H
#define UITOOLS_H

#include <QObject>
#include <Tools/Helper.h>
#include <AppConfig.h>
#include <QDir>
#include <QFile>
#include <QTextStream>

class UITools : public QObject
{
    Q_OBJECT
public:
    explicit UITools(QObject *parent = nullptr);

    Q_INVOKABLE QString getJsonStrFromFile(QString pN, QString pI, QString fN);

private:
    QString cahceReDownload(QString pN, QString pI, QString fN);
    QString buildJsonPath(QString pN, QString pI, QString fN);
};

#endif // UITOOLS_H
